package com.getui.java.query;

import java.util.Map;

import com.getui.java.COMM;
import com.gexin.rp.sdk.base.IQueryResult;
import com.gexin.rp.sdk.http.IGtPush;

public class QueryAppPushDataByDate {

	public static void main(String[] args) {

		IGtPush push = new IGtPush(COMM.host, COMM.APPKEY, COMM.MASTERSECRET);

		IQueryResult result = push.queryAppPushDataByDate(COMM.APPID, "20161208");
		System.out.println(result.getResponse());

		Map<String, Object> data = (Map<String, Object>) result.getResponse().get("data");
		System.out.println("发送总数:" + data.get("sendCount"));
		System.out.println("在线下发数:" + data.get("sendOnlineCount"));
		System.out.println("接收总数:" + data.get("receiveCount"));
		System.out.println("展示总数:" + data.get("showCount"));
		System.out.println("点击总数:" + data.get("clickCount"));
	}

}